<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<%@ include file="/common/meta.jsp"%>
<script type="text/javascript" src="${ctx}/js/utils/swfupload/swfupload.js"></script>
<title>汪星客 - 个人中心 - 店铺信息管理</title>
</head>
<body>
	<div class="wrap">
		<div class="header_bg">
			<%@ include file="/common/header.jsp"%>
	    </div>
	    <div class="w">
	    	<div class="path box">
	    		<jsp:include page="/common/frame/frame_path.jsp">
            		<jsp:param name="current" value="个人信息"/>
            	</jsp:include>
	        </div>
	    </div>
	    <div class="main">
		    <div class="list box">
	        	<div class="pc_left">
	            	<jsp:include page="/common/frame/frame_left.jsp">
	            		<jsp:param name="checked" value="manage"/>
	            	</jsp:include>
	            </div>
	            <div class="pc_right">
	            	<form id="frame_manage_form" method="post" action="${ctx}/user/resetpass.do">
	    			 <div class="pc_m fl">
	                	<div class="password">
	                		<h2 class="font_s">修改密码</h2>
	                		<div class="info">
								<p class="font_s">原密码</p>
								<input class="easyui-validatebox ipt_txt" type="password" name="oldPass" data-options="required:true,validType:'Password[6,50]'"/>
							</div>
							<div class="info">
								<p class="font_s">新密码</p>
								<input id="newPassword" class="easyui-validatebox ipt_txt" type="password" name="user.loginPassword" data-options="required:true,validType:'Password[6,50]'"/>
							</div>
							<div class="info">
								<p class="font_s">确认密码</p>
								<input id="newPasswordAgain" class="easyui-validatebox ipt_txt" type="password"/>
							</div>
	                    </div>
	                    <div class="btn">
	                    	<a href="#" onclick="submitEditPassword(this)" class="easyui-linkbutton tg-btn">提交</a>
	                    </div>
	                </div>
	                </form>
            	</div>
	    		<div class="clear"></div>
			</div>
	    </div>
	    <div class="footer_bg">
	    	<%@ include file="/common/footer.jsp"%>
	    </div>
	</div>
</body>
<script type="text/javascript">
$("#newPasswordAgain").validatebox({   
	required:true,
    validType:["PasswordAgain['#newPassword']", "Password[6,50]"]
});
function submitEditPassword(buttonObj) {
	frame.submitForm("frame_manage_form", buttonObj, function(res) {
        if (res.code == 1) {
        	msg.msg("密码修改成功.");
        	$("#frame_manage_form input").val("");
        } else {
        	msg.error(res.msg);
        }
    });
}
</script>
</html>